function goScroll(id,timer){
    var hander;
    var width=0;
    var scroll=0;
    function run(){
        if(width==0){
            width=parseInt($(id).find("div:first").outerWidth());
            copyElement();
        }
        if(scroll>=width){
            copy();
        }
        else{
            changeCss($(id),"margin-left",-1);
            scroll++;
        }
    }
    function copyElement(){
        $(id).children("div:last").after($(id).find("div:first").prop('outerHTML'));
    }
    function copy(){
        copyElement();
        $(id).find("div:first").remove();
        changeCss($(id),"padding-left",width);
        if(parseInt($(id).css("padding-left"))>5000){
            changeCss($(id),"margin-left",5000);
            changeCss($(id),"padding-left",-5000);
        }
        scroll=0;
    }
    function changeCss(element,css,span){
        element.css(css,parseInt(element.css(css))+span);
    }
    function start(){
        hander=window.setInterval(run,timer);
    }
    $(id).mouseover(function(){
        window.clearInterval(hander);
    });
    $(id).mouseout(function(){
        start();
    });
    start();
}
